<?php
$id = empty($_GET['id']) ? 0 : intval($_GET['id']);

$oLibrary = new Library();
$library_tree = $oLibrary->get_library_tree_ul(); // 取分类树

if($id > 0){
	$oSentence = new Sentence();
	$sentence_info = $oSentence->get_row($id, '*');
	$sentence_info['library_name'] = $_f_librarys['library_list'][$sentence_info['libraryid']]['name'];
	$sentence_info['lang_options'] = make_options($__f_langs['lang_id_name_list'], false, $sentence_info['langid']);
}else{
	$sentence_info = array(
		'libraryid'		=> 0,
		'state' 		=> 1,
		'library_name'	=> $__l['root'],
		'lang_options'	=> make_options($__f_langs['lang_id_name_list']),
	);
}
$sentence_info['library_tree'] = $library_tree;
$vars['info'] = $sentence_info;
?>